import request from '@/utils/request';

// 活动列表-签到活动
export function getsignInList(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/list',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
// 统计基础信息
export function getSignBaseInfo(params: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/total/base-info',
        params
    });
}
// 趋势图数据
export function getSignTrend(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/total/trend',
        method: 'post',
        data
    });
}
// 下载/批量下载
export function signDownload(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/download',
        method: 'post',
        data
    });
}

// 删除/批量删除
export function signInDelete(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/del',
        method: 'post',
        data,
        noNeedLoading: true
    });
}

// 活动开始/结束
export function signInChangeStatus(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/change-status',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
// 签到明细
export function getClockInDetails(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/info',
        method: 'post',
        data
    });
}
// 打卡明细
export function getDakaInfo(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/daka/info',
        method: 'post',
        data
    });
}
// 打卡明细-基本信息
export function getDakaInfoBasic(params: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/daka/base-info',
        params
    });
}
// 新建活动
export function signCreate(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/create',
        method: 'post',
        data
    });
}
// 查看活动
export function signLook(params: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/detail',
        params
    });
}
// 编辑活动
export function signEdit(data: any) {
    return request({
        url: '/scrm-api/console/market/sign-in/edit',
        method: 'post',
        data
    });
}
